﻿using Micro.Extensions.Refit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Module.Test.Application.RefitServices
{
    public interface IRefitCustomService : IRefit
    {
        [Get("/Test/api/Custom/GetList")]
        [Headers("Authorization: Bearer", "Content-Type: application/json")]
        Task<ApiResult> GetAll([Header("Authorization")] string token = null);

        [Get("/Test/api/Custom/Get")]
        [Headers("Content-Type: application/json")]
        Task<string> GetById(long id, [Header("Authorization")] string token = null);

        [Get("/Test/api/Custom/Get")]
        Task<ApiResult> Get(long id, [Header("Authorization")] string token = null);

    }
}
